import { createApp } from 'vue';
import App from './App.vue';
import ElementPlus from 'element-plus';
import 'element-plus/dist/index.css';
import axios from 'axios';

axios.defaults.baseURL = 'http://localhost'; // 你的后端地址

import router from './router';
import {createPinia} from "pinia"; // 👈 这里引入
import 'canvas-nest.js'

const app = createApp(App);
const pinia = createPinia();
app.use(router); // 👈 使用 router
app.use(ElementPlus);
app.mount('#app');
app.use(pinia);